package com.woniuxy.main.pay.dao;


import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.woniuxy.main.pay.pojo.Order;
import com.woniuxy.main.pay.pojo.OrderComment;

public interface OrderMapper {
    int insert(Order record);

    int insertSelective(Order record);

    List<Order> allOrderShowMapp(@Param("user_id")Integer user_id, @Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize);

	List<Order> nonOrderShowMapp(@Param("user_id")Integer user_id,@Param("order_state")Integer order_state, @Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize);

	Integer searchRole(@Param("user_id")Integer user_id);

	String searchNickName(@Param("user_id")Integer user_id);

	int searchCoachId(@Param("coach_id")Integer coach_Id);

	int searVenueId(@Param("venue_id")Integer venue_id);

	int searStudentId(@Param("student_id")Integer student_id);
	
	Order detailMaooer(@Param("order_id")Integer order_id);

	String studentComment(@Param("order_id")Integer order_id);

//	String coachComment(@Param("order_id")Integer order_id);

	Integer searchObligation(@Param("user_id")Integer user_id, @Param("order_state")Integer order_state);

	Integer searchAllCount(@Param("user_id")Integer user_id);

	Integer searchBalance(@Param("user_id")Integer user_id);

	void addBalance(@Param("user_id")Integer user_id, @Param("balance")Integer balance);

	List<Order> searchOrderMapp(@Param("user_id")Integer user_id);

	void addOrder(@Param("addOrder")Order addOrder);

	void updateStateMaper(@Param("order_id")Integer order_id,@Param("order_state")Integer order_state);
	
	void updateStateTimeMaper(Order orderState);

	void updateStateMaper2(Order addOrder);

	String coachTimeMaper(@Param("order_id")Integer order_id);

	Integer coachDurationMaper(@Param("order_id")Integer order_id);

	Integer searchStudentId(@Param("student_id")Integer student_id);

	Integer searchStudentUserId(@Param("order_id")Integer order_id);

	void addCommentMapper(OrderComment comments);

//	String selectComentMap(@Param("order_id")Integer order_id);

	Integer searchOrderStudentId(@Param("user_id")Integer user_id);

	Integer searchOrderCoachId(@Param("user_id")Integer user_id);

	List<Order> allOrderShowMapp2(@Param("coach_id")Integer coach_id, @Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize);

	List<Order> nonOrderShowMapp2(@Param("coach_id")Integer coach_id,@Param("order_state")Integer order_state, @Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize);

	Integer searchAllCount2(@Param("coach_id")Integer coach_id);

	Integer searchObligation2(@Param("coach_id")Integer coach_id, @Param("order_state")Integer order_state);

	String searUserHeadimg(@Param("user_id")Integer user_id);

	List<Order> searchCoachOrderMapp(@Param("coach_id")Integer coach_id);

//	String searchcourseTime(@Param("order_id")Integer order_id);

}